﻿using AutofacProject.Entity;
using AutofacProject.Repository.Interface;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AutofacProject.Repository
{
    public class MoviesRepository : IMoviesRepository
    {
        private readonly KeDa2024DbContext _db;

        public MoviesRepository(KeDa2024DbContext keDa2024DbContext)
        {
            _db = keDa2024DbContext;
        }


        public List<Movie> GetList()
        {
            return _db.Movie.ToList();
        }
        public int Add(Movie movie)
        {
            throw new NotImplementedException();
        }

        public bool Delete(int id)
        {
            throw new NotImplementedException();
        }

        public Movie GetModel(int id)
        {
            throw new NotImplementedException();
        }

        public bool Update(Movie movie)
        {
            throw new NotImplementedException();
        }
    }
}
